<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/8/9
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <title>微信支付接口测试DEMO</title>
    <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport">
    <link rel="stylesheet" href="<%=path%>/static/bootstrap-3.3.5/css/bootstrap.css"/>
    <script type="text/javascript" src="<%=path%>/static/jquery/jquery-3.0.0.js"></script>
    <script type="text/javascript" src="<%=path%>/static/bootstrap-3.3.5/js/bootstrap.js"></script>
    <script type="text/javascript" src="<%=path%>/static/jquery.form/jquery.form.js"></script>
</head>
<body>
<div class="container">
    <fieldset>
        <legend>微信支付接口测试DEMO</legend>
    </fieldset>
    <form role="form" id="payment" class="form-horizontal" action="${url}" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label for="merchantId" class="col-sm-2 control-label">商户标识：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="merchantId" id="merchantId" placeholder="请输入商户标识"
                       value="${payment.merchantId}">
            </div>
        </div>
        <div class="form-group">
            <label for="merOrderId" class="col-sm-2 control-label">商户订单号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="merOrderId" id="merOrderId" placeholder="商户订单号"
                       value="${payment.merOrderId}">
            </div>
        </div>

        <div class="form-group">
            <label for="feeAmt" class="col-sm-2 control-label">手续费：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="feeAmt" id="feeAmt" placeholder="请输入手续费"
                       value="${payment.feeAmt}">
            </div>
        </div>
        <div class="form-group">
            <label for="currency" class="col-sm-2 control-label">币种：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="currency" id="currency" placeholder="请输入币种"
                       value="${payment.currency}">
            </div>
        </div>
        <div class="form-group">
            <label for="subject" class="col-sm-2 control-label">商品名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="subject" id="subject" placeholder="请输入商品名称"
                       value="${payment.subject}">
            </div>
        </div>
        <div class="form-group">
            <label for="detail" class="col-sm-2 control-label">商品描述：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="detail" id="detail" placeholder="请输入商品描述"
                       value="${payment.detail}">
            </div>
        </div>
        <div class="form-group">
            <label for="transAmt" class="col-sm-2 control-label">交易金额：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="transAmt" id="transAmt" placeholder="请输入交易金额"
                       value="${payment.transAmt}">
            </div>
        </div>
        <div class="form-group">
            <label for="attach" class="col-sm-2 control-label">商户私有域：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="attach" id="attach" placeholder="商户私有域"
                       value="${payment.attach}">
            </div>
        </div>
        <div class="form-group">
            <label for="bgRetUrl" class="col-sm-2 control-label">后台回调地址：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="bgRetUrl" id="bgRetUrl" placeholder="请输入后台回调地址"
                       value="${payment.bgRetUrl}">
            </div>
        </div>
        <div class="form-group">
            <label for="pgRetUrl" class="col-sm-2 control-label">页面跳转地址：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="pgRetUrl" id="pgRetUrl" placeholder="请输入页面跳转地址"
                       value="${payment.pgRetUrl}">
            </div>
        </div>
        <div class="form-group">
            <label for="immediatelyPay" class="col-sm-2 control-label">是否直接支付：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="immediatelyPay" id="immediatelyPay" placeholder="请输入是否直接支付"
                       value="${payment.immediatelyPay}">
            </div>
        </div>
        <div class="form-group">
            <label for="signatureAlgorithm" class="col-sm-2 control-label">签名方式：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="signatureAlgorithm" id="signatureAlgorithm" placeholder="请输入签名方式"
                       value="${payment.signatureAlgorithm}">
            </div>
        </div>
        <div class="form-group">
            <label for="signatureInfo" class="col-sm-2 control-label">签名：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="signatureInfo" id="signatureInfo" placeholder="请输入签名"
                       value="${payment.signatureInfo}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" id="batch-profit-btn" class="btn btn-info">提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
